package mest.service.cxj.impl;

import mest.VO.cxj.FinancialCostOrderVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import mest.dao.cxj.FinancialCostOrderDao;
import mest.entity.FinancialCostOrder;
import mest.service.cxj.FinancialCostOrderService;

import java.math.BigDecimal;
import java.util.List;

@Service
public class FinancialCostOrderServiceImpl implements FinancialCostOrderService {

    @Resource
    private FinancialCostOrderDao financialCostorderDao;


    @Override
    public Integer insertFinancialCostOrder(FinancialCostOrder fco, String theirDb) {
        return financialCostorderDao.insertFinancialCostOrder(fco, theirDb);
    }

    @Override
    public List<FinancialCostOrderVO> selectAllFinancialCostOrder(Integer page, Integer limit, Integer status, String content, String theirDb) {
        return financialCostorderDao.selectAllFinancialCostOrder((page-1)*limit, limit, status, content, theirDb);
    }

    @Override
    public Integer selectCountFinancialCostOrder(Integer status, String content, String theirDb) {
        return financialCostorderDao.selectCountFinancialCostOrder(status, content, theirDb);
    }

    @Override
    public Integer changeStatus(Integer id, String theirDb) {
        return financialCostorderDao.changeStatus(id, theirDb);
    }

    @Override
    public Integer modifyFinancialCostOrder(FinancialCostOrder fco, String theirDb) {
        return financialCostorderDao.modifyFinancialCostOrder(fco, theirDb);
    }

    @Override
    public FinancialCostOrder selectFinancialCostOrderById(Integer id, String theirDb) {
        return financialCostorderDao.selectFinancialCostOrderById(id, theirDb);
    }

    @Override
    public Integer updateFinancialCostOrderByMoney(Integer id, BigDecimal hasBennMoney, String theirDb) {
        return financialCostorderDao.updateFinancialCostOrderByMoney(id, hasBennMoney, theirDb);
    }
}
